package ace.module.weixin.api.enums;

import ace.cmp.core.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author caspar
 * @date 2023/3/18 11:17
 */
@AllArgsConstructor
public enum WxsErrorCodeEnum implements BaseEnum<Integer> {
  SYSTEM_ERROR(-1, "系统繁忙，此时请开发者稍候再试"),
  CODE_INVALID(40029, "js_code无效"),
  API_LIMIT(45001, "API 调用太频繁，请稍候再试"),
  /**
   * 高风险等级用户，小程序登录拦截 。风险等级详见用户安全解方案
   *
   * @see <a href="https://developers.weixin.qq.com/miniprogram/dev/framework/operation.html">方案</a>
   */
  CODE_BLOCKED(40226, "高风险等级用户，小程序登录拦截 。风险等级详见用户安全解方案");
  ;
  @Getter private Integer code;
  @Getter private String desc;
}
